home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 23 / 6 / DISK2368.ZIP / ANSWERS / CH07_3A.HPP < prev    next >
Text File  |  1990-07-20  |  401b  |  20 lines

  1.                              // Chapter 7 - Programming exercise 3
  2. #include "vehicle.hpp"
  3.  
  4. class truck : public vehicle {
  5.    int passenger_load;
  6.    float payload;
  7. public:
  8.    void init_truck(int how_many = 2, float max_load = 24000.0);
  9.    float efficiency(void);
  10.    int passengers(void);
  11.    int total_weight(void);
  12. };
  13.  
  14.  
  15.  
  16.  
  17. // Result of execution
  18. //
  19. // (this file cannot be executed)
  20.